package com.exam.online.system.constant;

/**
 * @author xupei
 * @date 2019/1/25
 */
public enum StatusCode {

    SUCCESS("0", "成功!"),

    FAILE("1", "失败"),

    FAIL_MISSING_PARAMS("2", "缺少必填参数"),

    FAIL_TASK_SYNCALL_ERROR("1", "同步所有的优先条件失败"),

    DATA_NULL_ERROR("3", "数据未找到"),
    SERVER_ERROR_COMMON("185001", "接口调用出错");

    private String code;

    private String message;

    StatusCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }


    public String getMessage() {
        return message;
    }

}
